package code.Frame.userFrame;

import javax.swing.*;
import javax.swing.table.TableCellRenderer;
import java.awt.*;

/*
    自定义表项的Renderer
 */
public class myRender extends myJSpinner implements TableCellRenderer
{
    @Override
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
    {
        if (value != null) {
            setValue(value);
        }
        return this;
    }
}
